<template>
  <div>
    <h2>我是弟弟，我开的是哥哥的{{car}}</h2>
  </div>

</template>

<script>
export default {
  name:"Didi",
  data(){
    return{
      car:"二手奇瑞QQ"
    }
  },
  methods:{
    getCar(value){
      this.car = value
    }
  },
  mounted(){
    this.$bus.$on("getCar",this.getCar)
  }
}
</script>

<style>

</style>